package com.cjm.one.model.goods.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.cjm.one.model.base.BaseEnum;
import com.fasterxml.jackson.annotation.JsonEnumDefaultValue;
import com.fasterxml.jackson.annotation.JsonValue;

public enum GoodsInfoAuditStatusEnum  implements BaseEnum {
//    "审核状态：0-初始值，1-通过，-1-未通过")
    @JsonEnumDefaultValue
    INIT(0, "初始值"),
    PASS(1, "通过"),
    NOT_PASS(-1, "未通过");
    @EnumValue
    @JsonValue
    private Integer code;
    private String message;
    GoodsInfoAuditStatusEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }


    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
